var app = getApp(),
  $ = require("../../utils/httpHelper.js")
Page({

  data: {
    url: '',
    v:'',
    height:'',
    width:''
  },
  onShareAppMessage: function (res) {
    app.shareApp(res)
  },
  onLoad: function (options) {
    var that = this;
    wx.getSystemInfo({
      success: function (res) {
        console.log(res)
        that.setData({ 
          height: res.windowHeight,
          width: res.windowWidth
         })
      }
    })
    this.videoContext  = wx.createVideoContext('myVideo')
    console.log(options)
    this.setData({
      url: options.url
    })
    // this.videoContext.requestFullScreen();
    // this.videoContext.play();
    
  },
})